package com.alstudio.view.toast;

import android.app.Activity;
import android.content.Context;
import android.view.View;
import android.view.animation.AnimationSet;
import android.widget.LinearLayout;

public class MyToast {

	private View toastView;
	private LinearLayout baseView;
	private AnimationSet as;
	private Context ctx;

	public void setContext(Context ctx) {
		boolean isActivity = ctx instanceof Activity;
		if (isActivity) {
			this.ctx = ctx;
		} else {
			throw new IllegalArgumentException();
		}
	}

	public Context getContext() {
		return this.ctx;
	}

	public void setView(View v) {
		this.toastView = v;
	}

	public View getView() {
		return toastView;
	}

	public void setBaseLayout(LinearLayout layout) {
		this.baseView = layout;
	}

	public LinearLayout getBaseLayour() {
		return this.baseView;
	}

	public void setAnimationSet(AnimationSet as) {
		this.as = as;
	}

	public AnimationSet getAnimationSet() {
		return this.as;
	}

}
